﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="FinMov007.aspx.cs" Inherits="Admin_FinMov_FinMov007" %>

<asp:Content ID="Content1" ContentPlaceHolderID="phScript" runat="Server">
    <script type="text/javascript" src="/Scripts/Controls/DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        function add() {
            OpenWindow('新建转移', 'A', '/Admin/FinMov/FinMov001a.aspx?type=A', 600, 500);
            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%; min-width: 700px">
        <div style="padding-right: 12px;">

            <div class="searchBox">
                <div class="sb1">搜索条件</div>
                <div class="sb2" onclick="searchDiv()" style="width: 100px" id="divButton">关闭</div>
                <div>
                    <table cellspacing="2" width="100%" cellpadding="2" id="tbSearch">
                        <tr>
                            <td width="100px" style="font-weight: bold">转移编号:
                            </td>
                            <td width="260px">
                                <yncWeb:yncTextBox ID="txtTranID" ValidateType="Number" MinValueLength="5" runat="server"></yncWeb:yncTextBox>
                            </td>
                            <td width="100px" style="font-weight: bold">转移类型:</td>
                            <td>
                                <yncWebDDL:DrpCodeTableValid ID="drpTransferType" runat="server" Category="CTE007" ShowSelectedItem="true">
                                </yncWebDDL:DrpCodeTableValid></td>
                        </tr>
                        <tr>
                            <td width="100px" style="font-weight: bold">转移发起日期:
                            </td>
                            <td>
                                <span style="color: #FF6600;">
                                    <input class="Wdate textBox" style="width: 100px;" runat="server" readonly="readonly"
                                        type="text" id="txtStartDate" clientidmode="Static" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'txtEndate\')||$dp.$DV(\'9998-12-31\')}'})" />&nbsp;&nbsp;至&nbsp;&nbsp;
                    <input class="Wdate textBox" runat="server" readonly="readonly" type="text" id="txtEndate"
                        clientidmode="Static" style="width: 100px;" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'txtStartDate\');}',maxDate:'9998-12-31'})" />
                                </span>
                            </td>
                            <td style="font-weight: bold">转移发起人:
                            </td>
                            <td>
                                <yncWeb:yncTextBox ID="txtCreator" runat="server"></yncWeb:yncTextBox></td>

                        </tr>
                        <tr>
                            <td width="100px" style="font-weight: bold">转出机构:</td>
                            <td>
                                <yncWebDDL:DrpThirdUnit ID="drpFrom" runat="server" ShowSelectedItem="true">
                                </yncWebDDL:DrpThirdUnit></td>
                            <td style="font-weight: bold">转入机构:</td>
                            <td>
                                <yncWebDDL:DrpThirdUnit ID="drpTo" runat="server" ShowSelectedItem="true">
                                </yncWebDDL:DrpThirdUnit></td>
                        </tr>
                        <tr>
                            <td width="100px" style="font-weight: bold">第三方存储:</td>
                            <td>
                                <yncWebDDL:DrpThirdUnit ID="drpThirdStore" ThirdType="JGLX003" runat="server" ShowSelectedItem="true">
                                </yncWebDDL:DrpThirdUnit></td>
                            <td width="100px" style="font-weight: bold">状态:
                            </td>
                            <td>
                                <yncWebDDL:DrpCodeTable ID="drpTransferStatus" runat="server" Category="CTE004" ShowSelectedItem="true">
                                </yncWebDDL:DrpCodeTable>
                                <span style="margin-left: 8px">
                                    <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></span>
                            </td>
                        </tr>



                    </table>
                </div>
            </div>
        </div>
        <table width="100%" cellspacing="2" cellpadding="2" class="menu" align="left">
            <tr>

                <td class="td">
                    <a class="add" href="#" title="新增" onclick="add()">新增</a>
                </td>
            </tr>
        </table>

        <yncWeb:PagnationGrid PageSize="30" ID="pageGrid" runat="server" OnOnPageIndexChange="PageChanged">
            <HeaderTemplate>
                <table width="100%" cellspacing="0" cellpadding="0" class="pagnationtable" align="left">
                    <thead>
                        <tr>
                            <th width="40px">序号</th>
                            <th width="120px" class="center">操作
                            </th>
                            <th width="60px">转移编号
                            </th>
                            <th width="150px">转移类型
                            </th>
                            <th width="120px">转移发起日期
                            </th>
                            <th width="120px">转移发起人
                            </th>
                            <th width="120px">转出机构
                            </th>
                            <th width="120px">转入机构</th>
                            <th width="100px">文档盒数量
                            </th>
                            <th width="100px">第三方仓储
                            </th>
                            <th width="90px">实物审核</th>
                            <th width="110px">实物审核人1</th>
                            <th width="110px">实物审核人2</th>
                            <th width="120px">转移运输方式</th>


                            <th width="90px">转出人
                            </th>
                            <th width="110px">转出日期
                            </th>
                            <th width="100px">接收人
                            </th>
                            <th width="110px">接收日期
                            </th>
                            <th width="80px">状态
                            </th>
                            <th width="200px">备注
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td><%# Container.ItemIndex +1+ (this.pageGrid.CurrentPage-1)*pageGrid.PageSize %></td>
                    <td class="center action">                        
                        <%# (Eval(VShippingInfoMetadata.ColumnNames.AttachmentName).ToString()).Length > 0 ? string.Format("<a class='aDw' target='_blank' title='附件下载' href='/UploadFile/FinMove/{0}'></a>", Eval(VShippingInfoMetadata.ColumnNames.AttachmentName)) : ""%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.CreatedDttm).FormatDate("yyyy") %><%# Eval(ConstantValue.ShowCode.ShowShipID)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.TransferType)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.CreatedDttm).FormatDate(ConstantValue.DateFormat)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.CreatedBy)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.FromDestination)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.ToDestination)%>
                    </td>
                    <td>
                        <%#getBoxCount(Eval(FinShippingMetadata.ColumnNames.ShipID),Eval("ShippingStatusCode"))%>
                    </td>
                    <td>
                        <%#getThirdName(Eval(FinShippingMetadata.ColumnNames.ToDestination),Eval(BFThirdUnitMetadata.ColumnNames.ThirdType))%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.IsChecked).ToString().ToLower()=="true"?"是":"否"%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.Check1)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.Check2)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.TransportType)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.Sender)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.ShippingDate).FormatDate(ConstantValue.DateFormat)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.ReceivedBy)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.ReceivedDttm).FormatDate(ConstantValue.DateFormat)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.ShippingStatus)%>
                    </td>
                    <td>
                        <%# Eval(FinShippingMetadata.ColumnNames.Comments)%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </yncWeb:PagnationGrid>
    </div>
    <script type="text/javascript">
        function searchDiv() {
            if ($("#divButton").text() == "关闭") {
                $("#divButton").text("展开");
                $("#tbSearch").toggle("normal");
            }
            else {
                $("#divButton").text("关闭");
                $("#tbSearch").toggle("normal");
            }

        }
    </script>
</asp:Content>

